package com.guoxin.chapter2.atomicintegertest;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author guoxin
 * @date 2019年8月21日
 */
public class AddCountThread extends Thread {
	private AtomicInteger count = new AtomicInteger(0);
	
	@Override
	public void run() {
		for(int i=0;i<10000;i++){
			System.out.println(count.incrementAndGet());
		}
	}
}
